﻿@model IEnumerable<SAKS.Models.DocumentInfo>
@{
    ViewBag.Title = "Document";
    Layout = "~/Views/Project/_FileList.cshtml";
}

@if (Model.Count() != 0)
{
    foreach (var m in Model)
    {
    <div class="infolist"> 
        <p><span class="strong">文件名称：</span>@m.Name &nbsp&nbsp <a href="/Download/Document/@m.FileId">下载</a>   </p>      
        <table class="imgtable">
            <tr>  
                <td><span  class="strong">主要作者：</span>@m.PrimaryAuthor</td>                        
                <td><span  class="strong">图件编号：</span>@m.SerialNumber</td>
                <td><span  class="strong">完成时间：</span>@(m.CompletedDate != null ? m.CompletedDate.Value.ToString("yyyy-MM-dd") : "")</td>
            </tr>
            <tr>
                <td><span  class="strong">审核人&nbsp：</span>@(m.Checker = null ?? "尚未审核")</td>           
                <td><span  class="strong">创建目的：</span>@m.CreatePurpose</td>
                <td><span  class="strong">归档时间：</span>@(m.ArchivedDate != null?m.ArchivedDate.Value.ToString("yyyy-MM-dd"):"")</td>
            </tr>           
        </table>  
        <p><span class="strong">摘要：</span>@m.Remarks</p>
    </div>    
    <hr />
    }
}
else
{ 
    <div class="infolist">没有文档</div>
    <hr />
}

